const mongoose = require('./db')
const shangpinSchema = new mongoose.Schema({
    price: String,
    imgSrc: String,
    name: String,
    fukuanrenshu: String,
    typetype: String,
    kucunshuliang: String,
    checkcheck: String,
})
const shangpinModel = mongoose.model('shangpin', shangpinSchema, 'shangpin')
const shangpin2Schema = new mongoose.Schema({
    price: Number,
    imgSrc: String,
    name: String,
    fukuanrenshu: Number,
    typetype: String,
    kucunshuliang: Number,
    checkcheck: String,
})
const shangpin2Model = mongoose.model('shangpin2', shangpin2Schema, 'shangpin2')
module.exports = { shangpinModel,shangpin2Model }